package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ExamExamination entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "exam_examination")
public class ExamExamination extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer examinationId;
	private Integer examinationPaperId;
	private String examinationName;
	private Date examinationStartTime;
	private Date examinationEndTime;
	private Integer examinationCostTime;
	private Integer examinationCreator;
	private Integer examinationEnable;
	private String examinationDescription;
	private Date examinationCreateTime;
	private Integer examinationModifyUser;
	private Date examinationModifyTime;

	// Constructors

	/** default constructor */
	public ExamExamination() {
	}

	/** minimal constructor */
	public ExamExamination(Integer examinationPaperId, String examinationName,
			Date examinationStartTime, Date examinationEndTime,
			Integer examinationCostTime, Integer examinationCreator,
			Integer examinationEnable, Date examinationCreateTime) {
		this.examinationPaperId = examinationPaperId;
		this.examinationName = examinationName;
		this.examinationStartTime = examinationStartTime;
		this.examinationEndTime = examinationEndTime;
		this.examinationCostTime = examinationCostTime;
		this.examinationCreator = examinationCreator;
		this.examinationEnable = examinationEnable;
		this.examinationCreateTime = examinationCreateTime;
	}

	/** full constructor */
	public ExamExamination(Integer examinationPaperId, String examinationName,
			Date examinationStartTime, Date examinationEndTime,
			Integer examinationCostTime, Integer examinationCreator,
			Integer examinationEnable, String examinationDescription,
			Date examinationCreateTime, Integer examinationModifyUser,
			Date examinationModifyTime) {
		this.examinationPaperId = examinationPaperId;
		this.examinationName = examinationName;
		this.examinationStartTime = examinationStartTime;
		this.examinationEndTime = examinationEndTime;
		this.examinationCostTime = examinationCostTime;
		this.examinationCreator = examinationCreator;
		this.examinationEnable = examinationEnable;
		this.examinationDescription = examinationDescription;
		this.examinationCreateTime = examinationCreateTime;
		this.examinationModifyUser = examinationModifyUser;
		this.examinationModifyTime = examinationModifyTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "examination_id", unique = true, nullable = false)
	public Integer getExaminationId() {
		return this.examinationId;
	}

	public void setExaminationId(Integer examinationId) {
		this.examinationId = examinationId;
	}

	@Column(name = "examination_paper_id", nullable = false)
	public Integer getExaminationPaperId() {
		return this.examinationPaperId;
	}

	public void setExaminationPaperId(Integer examinationPaperId) {
		this.examinationPaperId = examinationPaperId;
	}

	@Column(name = "examination_name", nullable = false, length = 256)
	public String getExaminationName() {
		return this.examinationName;
	}

	public void setExaminationName(String examinationName) {
		this.examinationName = examinationName;
	}

	@Column(name = "examination_start_time", nullable = false, length = 19)
	public Date getExaminationStartTime() {
		return this.examinationStartTime;
	}

	public void setExaminationStartTime(Date examinationStartTime) {
		this.examinationStartTime = examinationStartTime;
	}

	@Column(name = "examination_end_time", nullable = false, length = 19)
	public Date getExaminationEndTime() {
		return this.examinationEndTime;
	}

	public void setExaminationEndTime(Date examinationEndTime) {
		this.examinationEndTime = examinationEndTime;
	}

	@Column(name = "examination_cost_time", nullable = false)
	public Integer getExaminationCostTime() {
		return this.examinationCostTime;
	}

	public void setExaminationCostTime(Integer examinationCostTime) {
		this.examinationCostTime = examinationCostTime;
	}

	@Column(name = "examination_creator", nullable = false)
	public Integer getExaminationCreator() {
		return this.examinationCreator;
	}

	public void setExaminationCreator(Integer examinationCreator) {
		this.examinationCreator = examinationCreator;
	}

	@Column(name = "examination_enable", nullable = false)
	public Integer getExaminationEnable() {
		return this.examinationEnable;
	}

	public void setExaminationEnable(Integer examinationEnable) {
		this.examinationEnable = examinationEnable;
	}

	@Column(name = "examination_description", length = 256)
	public String getExaminationDescription() {
		return this.examinationDescription;
	}

	public void setExaminationDescription(String examinationDescription) {
		this.examinationDescription = examinationDescription;
	}

	@Column(name = "examination_create_time", nullable = false, length = 19)
	public Date getExaminationCreateTime() {
		return this.examinationCreateTime;
	}

	public void setExaminationCreateTime(Date examinationCreateTime) {
		this.examinationCreateTime = examinationCreateTime;
	}

	@Column(name = "examination_modify_user")
	public Integer getExaminationModifyUser() {
		return this.examinationModifyUser;
	}

	public void setExaminationModifyUser(Integer examinationModifyUser) {
		this.examinationModifyUser = examinationModifyUser;
	}

	@Column(name = "examination_modify_time", length = 19)
	public Date getExaminationModifyTime() {
		return this.examinationModifyTime;
	}

	public void setExaminationModifyTime(Date examinationModifyTime) {
		this.examinationModifyTime = examinationModifyTime;
	}

}